package com.xianyun.site.support.common.exception;


import com.alibaba.cola.exception.BaseException;

/**
 * @author mac_zyj
 */
public class SmsException  extends BaseException {
    private static final long serialVersionUID = 1L;

    public SmsException(String errMessage){
        super(errMessage);
        this.setErrCode(SmsErrorCode.BIZ_SMS_ERROR.getErrCode());
    }

    public SmsException(SmsErrorCode errCode, String errMessage){
        super(errMessage);
        this.setErrCode(errCode.getErrCode());
    }

    public SmsException(String errMessage, Throwable e) {
        super(errMessage, e);
        this.setErrCode(SmsErrorCode.BIZ_SMS_ERROR.getErrCode());
    }
}
